package com.github.catvod.spider;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Application;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.Toast;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.۟۠ۢۤۦ;
import com.github.catvod.parser.۟۠ۢۦۡ;
import com.github.catvod.parser.۟ۤۥ۟ۢ;
import com.github.catvod.parser.ۣ۟ۧۡۧ;
import com.github.catvod.parser.۟ۧۦۡۦ;
import com.github.catvod.parser.ۡۡۧۡ;
import com.github.catvod.parser.ۡۧ;
import com.github.catvod.parser.ۣۤ۟ۨ;
import com.github.catvod.parser.ۤۡۧۡ;
import com.github.catvod.parser.ۨ۟ۡۡ;
import com.github.catvod.spider.merge.D8;
import com.github.catvod.spider.merge.Ej;
import com.github.catvod.spider.merge.qd;
import com.github.catvod.spider.merge.ۣۣ۟۠ۤ;
import com.github.catvod.spider.merge.۟ۡۦۣۧ;
import com.github.catvod.spider.merge.ۡۡ۟ۥ;
import com.github.catvod.spider.merge.ۣۥ۟ۢ;
import com.github.catvod.spider.merge.ۦ۟ۡ۟;
import java.lang.reflect.Field;
import java.util.Iterator;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;

public class Init {
  public static int BQ;
  
  public static String I;
  
  public static String Qy;
  
  public static String V0;
  
  public static String W;
  
  public static String h;
  
  public static String j;
  
  public static int oC;
  
  public static Boolean oq;
  
  public static String q;
  
  private static final short[] short = new short[] { 
      1071, 1056, 1066, 1084, 1057, 1063, 1066, 1120, 1071, 1086, 
      1086, 1120, 1039, 1069, 1082, 1063, 1080, 1063, 1082, 1079, 
      1050, 1062, 1084, 1067, 1071, 1066, 2818, 2836, 2835, 2835, 
      2820, 2831, 2837, 2848, 2818, 2837, 2824, 2839, 2824, 2837, 
      2840, 2869, 2825, 2835, 2820, 2816, 2821, 2416, 2396, 2430, 
      2409, 2420, 2411, 2420, 2409, 2420, 2424, 2414, 2706, 2691, 
      2711, 2705, 2695, 2694, 943, 941, 954, 935, 952, 935, 
      954, 951, 1018, 998, 998, 994, 936, 957, 957, 996, 
      956, 995, 1019, 1011, 1021, 1016, 1019, 938, 956, 1009, 
      1021, 1023, 957, 1012, 1019, 1002, 931, 928, 930, 935, 
      956, 1016, 993, 1021, 1020, 2931, 2894, 2899, 2891, 2882, 
      1427, 1458, 1449, 1460, 1470, 1464, 2829, 2853, 2867, 2867, 
      2849, 2855, 2853, 2519, 2549, 2513, 2559, 2531, 3290, 3325, 
      3304, 3325, 3324, 3322, 727, 755, 761, 715, 748, 754, 
      680, 644, 667, 658, 671, 642, 667, 439, 394, 404, 
      411, 407, 415, 1380, 1378, 1396, 1379, 1365, 1392, 1381, 
      1392, 962, 979, 961, 961, 965, 989, 960, 982, -28780, 
      -29712, 21766, 27555, 26968, 31842, 18966, 21910, 26571, 32033, 25602, 
      26361, -31865, 23031, 19492, 28737, -31738, 19598, 31340, 20685, -29424, 
      24701, 20722, -660 };
  
  private static EditText u;
  
  private final Handler F8 = new Handler(Looper.getMainLooper());
  
  private Application t;
  
  static {
    oq = Boolean.FALSE;
  }
  
  public Init() {
    int j = ۟۠ۢۦۡ.ۣ۟ۡ۟ۦ();
    int i = 1616;
    while (true) {
      Double double_;
      i ^= 0x661;
      switch (i) {
        case 14:
          i = 1678;
          break;
        case 49:
          if (j <= 0) {
            i = 1709;
            break;
          } 
        case 204:
          double_ = Double.valueOf(ۣ۟ۧۡۧ.ۣۨۦۢ("6XyXDOMtP6A"));
          System.out.println(double_);
          break;
        case 239:
          break;
      } 
    } 
  }
  
  public static Application context() {
    return (get()).t;
  }
  
  public static Init get() {
    return Loader.h;
  }
  
  public static Activity getActivity() {
    try {
      Class<?> clazz = Class.forName(۟۠ۢۦۡ.۟ۡ۟۠(short, 0, 26, 1102));
      object = clazz.getMethod(ۨ۟ۡۡ.ۣۣ۟ۡ۠(short, 26, 21, 2913), new Class[0]).invoke(null, new Object[0]);
      Field field = clazz.getDeclaredField(ۡۧ.۟ۦۤۧۡ(short, 47, 11, 2333));
      field.setAccessible(true);
      Iterator iterator = ((Map)field.get(object)).values().iterator();
      label28: while (true) {
        boolean bool = iterator.hasNext();
        int i = 1616;
        while (true) {
          Field field1;
          Class<?> clazz1;
          i ^= 0x661;
          switch (i) {
            case 14:
              i = 1678;
              break;
            case 49:
              if (bool) {
                i = 1709;
                break;
              } 
            case 204:
              object = iterator.next();
              clazz1 = object.getClass();
              field1 = clazz1.getDeclaredField(ۣۤ۟ۨ.ۦۣۤ(short, 58, 6, 2786));
              field1.setAccessible(true);
              bool = field1.getBoolean(object);
              i = 1740;
              while (true) {
                Field field2;
                i ^= 0x6DD;
                switch (i) {
                  case 471:
                    continue label28;
                  case 17:
                    if (!bool) {
                      i = 1833;
                      break;
                    } 
                  case 54:
                    i = 1802;
                    break;
                  case 500:
                    field2 = clazz1.getDeclaredField(ۡۡ۟ۥ.ۤۧۦ۟(short, 64, 8, 974));
                    field2.setAccessible(true);
                    object = field2.get(object);
                    SpiderDebug.log(object.getComponentName().getClassName());
                    return (Activity)object;
                } 
              } 
              break;
            case 239:
              return null;
          } 
        } 
        break;
      } 
    } catch (Exception object) {
      object.printStackTrace();
      object = null;
    } 
    return (Activity)object;
  }
  
  public static void getPackage() {
    (get()).F8.post(HA.h);
  }
  
  public static AlertDialog getdata() {
    null = ۟۠ۢۤۦ.ۥۡۢ(short, 72, 33, 914);
    try {
      JSONObject jSONObject = new JSONObject();
      this(Ej.h(null));
      h = jSONObject.getString(۟ۤۥ۟ۢ.ۣ۟ۢۨۨ(short, 105, 5, 2855));
      BQ = jSONObject.getInt(۟ۤۥ۟ۢ.ۣ۟ۢۨۨ(short, 110, 6, 1501));
      V0 = jSONObject.getString(ۨ۟ۡۡ.ۣۣ۟ۡ۠(short, 116, 7, 2880));
      j = jSONObject.getString(ۣۥ۟ۢ.ۤۡۦۡ(short, 123, 5, 2458));
      oC = jSONObject.getInt(۠ۦۣۧ.ۨۡۡۥ(short, 128, 6, 3209));
      W = jSONObject.getString(۟ۥ۟ۡۦ.ۦۡۦۤ(short, 134, 6, 670));
      q = jSONObject.getString(ۣۣ۟۠ۤ.ۡۥۤۤ(short, 140, 7, 747));
      I = jSONObject.getString(ۡۧ.۟ۦۤۧۡ(short, 147, 6, 506));
      null = getActivity().getSharedPreferences(۟ۡۦۣۧ.ۣۨۨ۟(short, 153, 8, 1297), 0).getString(ۡۡ۟ۥ.ۤۧۦ۟(short, 161, 8, 946), "");
      int j = oC;
      int i = 1616;
      while (true) {
        boolean bool;
        i ^= 0x661;
        switch (i) {
          default:
            continue;
          case 14:
            i = 1678;
            continue;
          case 49:
            if (j != 0) {
              i = 1709;
              continue;
            } 
          case 204:
            bool = null.equals(j);
            i = 1740;
            while (true) {
              i ^= 0x6DD;
              switch (i) {
                default:
                  continue;
                case 17:
                  if (!bool) {
                    i = 1833;
                    continue;
                  } 
                case 54:
                  i = 1802;
                  continue;
                case 500:
                  bool = oq.booleanValue();
                  i = 1864;
                  while (true) {
                    AlertDialog.Builder builder;
                    EditText editText;
                    String str;
                    LinearLayout linearLayout;
                    qd qd;
                    i ^= 0x759;
                    switch (i) {
                      default:
                        continue;
                      case 17:
                        if (!bool) {
                          i = 48736;
                          continue;
                        } 
                      case 47483:
                        i = 48705;
                        continue;
                      case 47417:
                        builder = new AlertDialog.Builder();
                        this((Context)getActivity());
                        linearLayout = new LinearLayout();
                        this((Context)getActivity());
                        linearLayout.setOrientation(1);
                        qd = new qd();
                        this((Context)getActivity());
                        qd.setMaxHeight(300);
                        qd.u(W);
                        editText = new EditText();
                        this((Context)getActivity());
                        u = editText;
                        editText.setHint(۠ۦۣۧ.ۨۡۡۥ(short, 169, 6, 1123));
                        u.setInputType(2);
                        linearLayout.addView((View)qd);
                        linearLayout.addView((View)u);
                        j = BQ;
                        str = ۦ۟ۡ۟.۟ۧ۟ۤ۟(short, 175, 4, 1051);
                        i = 48767;
                        while (true) {
                          AlertDialog alertDialog;
                          View.OnClickListener onClickListener;
                          AlertDialog.Builder builder1;
                          Button button;
                          i ^= 0xBE90;
                          switch (i) {
                            default:
                              continue;
                            case 14:
                              i = 48829;
                              continue;
                            case 239:
                              if (j == 1) {
                                i = 48860;
                                continue;
                              } 
                            case 76:
                              linearLayout.removeView((View)u);
                              builder1 = builder.setCancelable(true).setMessage(V0).setView((View)linearLayout);
                              onClickListener2 = new DialogInterface.OnClickListener() {
                                  private static final short[] short = new short[] { 
                                      855, 849, 839, 848, 870, 835, 854, 835, 2865, 2848, 
                                      2866, 2866, 2870, 2862, 2867, 2853 };
                                  
                                  public void onClick(DialogInterface param1DialogInterface, int param1Int) {
                                    String str3 = null;
                                    SharedPreferences sharedPreferences = null;
                                    String str2 = null;
                                    short[] arrayOfShort = null;
                                    Activity activity = null;
                                    String str1 = "ۦۢۥ";
                                    SharedPreferences.Editor editor = null;
                                    while (true) {
                                      switch (ۡۧ.ۥۨۨۡ(str1)) {
                                        default:
                                          str2 = ۟۠ۢۦۡ.۟ۡ۟۠(arrayOfShort, 0, 8, 802);
                                          str1 = "۠ۨ۠";
                                          continue;
                                        case 1747928:
                                          sharedPreferences = activity.getSharedPreferences(str2, 0);
                                          str1 = "ۥۣۧ";
                                          continue;
                                        case 1755528:
                                          editor.apply();
                                          str1 = "ۤۡ۟";
                                          continue;
                                        case 1753513:
                                          activity = Init.getActivity();
                                          str1 = "ۡ۠ۤ";
                                          continue;
                                        case 1752585:
                                          editor = sharedPreferences.edit();
                                          str1 = "ۦۧ۠";
                                          continue;
                                        case 1753663:
                                          str2 = Init.j;
                                          str1 = "ۢ۟";
                                          continue;
                                        case 1748704:
                                          str3 = ۣۥ۟ۢ.ۤۡۦۡ(arrayOfShort, 8, 8, 2881);
                                          str1 = "ۣۧ۠";
                                          continue;
                                        case 56381:
                                          arrayOfShort = short;
                                          str1 = "ۡۢۡ";
                                          continue;
                                        case 1754500:
                                          editor.putString(str3, str2);
                                          str1 = "ۨۥۥ";
                                          continue;
                                        case 1748645:
                                          arrayOfShort = short;
                                          str1 = "ۥ۟ۥ";
                                          continue;
                                        case 1751554:
                                          break;
                                      } 
                                      break;
                                    } 
                                  }
                                };
                              super();
                              builder1.setNegativeButton(str, onClickListener2);
                              i = 48891;
                              while (true) {
                                DialogInterface.OnCancelListener onCancelListener;
                                DialogInterface.OnShowListener onShowListener;
                                i ^= 0xBF0C;
                                switch (i) {
                                  case 22:
                                    alertDialog = builder.create();
                                    onCancelListener = new DialogInterface.OnCancelListener() {
                                        private static final short[] short = new short[] { 2811, 2798, 2792, 22749, -30471, 27490, 28332, 23061, 19874 };
                                        
                                        public void onCancel(DialogInterface param1DialogInterface) {
                                          String str3 = null;
                                          short[] arrayOfShort = null;
                                          String str1 = "ۡ۠۠";
                                          String str2 = null;
                                          while (true) {
                                            switch (ۡۧ.ۥۨۨۡ(str1)) {
                                              default:
                                                arrayOfShort = short;
                                                str1 = "۠ۧۧ";
                                                continue;
                                              case 1752675:
                                                Log.e(str2, str3);
                                                str1 = "ۤۥۢ";
                                                continue;
                                              case 1747904:
                                                str3 = ۦ۟ۡ۟.۟ۧ۟ۤ۟(arrayOfShort, 3, 6, 804);
                                                str1 = "ۥۦۤ";
                                                continue;
                                              case 1748641:
                                                arrayOfShort = short;
                                                str1 = "ۣ۠۟";
                                                continue;
                                              case 1747652:
                                                str2 = ۟۠ۢۦۡ.۟ۡ۟۠(arrayOfShort, 0, 3, 2735);
                                                str1 = "۠ۧ۠";
                                                continue;
                                              case 1751681:
                                                break;
                                            } 
                                            break;
                                          } 
                                        }
                                      };
                                    super();
                                    alertDialog.setOnCancelListener(onCancelListener);
                                    onShowListener = new DialogInterface.OnShowListener() {
                                        static {
                                        
                                        }
                                        
                                        public void onShow(DialogInterface param1DialogInterface) {
                                          int j = ۟ۧۦۡۦ.ۧۧۦۦ();
                                          int i = 1616;
                                          while (true) {
                                            String str;
                                            i ^= 0x661;
                                            switch (i) {
                                              case 14:
                                                i = 1678;
                                                break;
                                              case 49:
                                                if (j <= 0) {
                                                  i = 1709;
                                                  break;
                                                } 
                                              case 204:
                                                str = ۡۧ.ۧ۟ۡۢ("oNNLWE6tsZ");
                                                System.out.println(str);
                                                break;
                                              case 239:
                                                break;
                                            } 
                                          } 
                                        }
                                      };
                                    super();
                                    alertDialog.setOnShowListener(onShowListener);
                                    alertDialog.show();
                                    oq = Boolean.TRUE;
                                    button = alertDialog.getButton(-3);
                                    onClickListener = new View.OnClickListener() {
                                        private static final short[] short = new short[] { 
                                            926, 920, 910, 921, 943, 906, 927, 906, 3290, 3275, 
                                            3289, 3289, 3293, 3269, 3288, 3278, 26245, 25726, 28996, -25508, 
                                            -32086 };
                                        
                                        final AlertDialog h;
                                        
                                        public void onClick(View param1View) {
                                          String str = Init.h().getText().toString();
                                          Init.Qy = str;
                                          boolean bool = TextUtils.isEmpty(str);
                                          int i = 1616;
                                          while (true) {
                                            SharedPreferences.Editor editor;
                                            int j;
                                            String str1;
                                            i ^= 0x661;
                                            switch (i) {
                                              case 14:
                                                i = 1678;
                                                break;
                                              case 49:
                                                if (!bool) {
                                                  i = 1709;
                                                  break;
                                                } 
                                              case 204:
                                                bool = Init.Qy.equals(Init.j);
                                                i = 1740;
                                                while (true) {
                                                  i ^= 0x6DD;
                                                  switch (i) {
                                                    default:
                                                      continue;
                                                    case 17:
                                                      if (!bool) {
                                                        i = 1833;
                                                        continue;
                                                      } 
                                                    case 54:
                                                      i = 1802;
                                                      continue;
                                                    case 500:
                                                      i = 1864;
                                                      while (true) {
                                                        i ^= 0x759;
                                                        switch (i) {
                                                          case 17:
                                                            i = 48674;
                                                            break;
                                                          case 47483:
                                                            break;
                                                        } 
                                                      } 
                                                      break;
                                                    case 471:
                                                      break;
                                                  } 
                                                  Toast.makeText((Context)Init.getActivity(), ۤۡۧۡ.ۣ۟ۡۨ۟(short, 16, 5, 2373), 1).show();
                                                  return;
                                                } 
                                                editor = Init.getActivity().getSharedPreferences(۟ۧۦۡۦ.ۣۢۤۨ(short, 0, 8, 1003), 0).edit();
                                                str1 = Init.j;
                                                editor.putString(۟ۡۦۣۧ.ۣۨۨ۟(short, 8, 8, 3242), str1);
                                                editor.apply();
                                                this.h.dismiss();
                                                j = ۣۤ۟ۨ.۟ۥۧ۟۟();
                                                i = 48767;
                                                while (true) {
                                                  Integer integer;
                                                  i ^= 0xBE90;
                                                  switch (i) {
                                                    default:
                                                      continue;
                                                    case 14:
                                                      i = 48829;
                                                      continue;
                                                    case 239:
                                                      if (j >= 0) {
                                                        i = 48860;
                                                        continue;
                                                      } 
                                                    case 76:
                                                      integer = Integer.decode(ۣۣ۟۠ۤ.۟ۧۥۦۥ("S8rjnldD3xg"));
                                                      System.out.println(integer);
                                                      return;
                                                    case 45:
                                                      break;
                                                  } 
                                                  break;
                                                } 
                                                return;
                                              case 239:
                                                break;
                                            } 
                                          } 
                                          Toast.makeText((Context)Init.getActivity(), ۤۡۧۡ.ۣ۟ۡۨ۟(short, 16, 5, 2373), 1).show();
                                        }
                                      };
                                    super(alertDialog);
                                    button.setOnClickListener(onClickListener);
                                    return alertDialog;
                                  case 503:
                                    i = 48922;
                                    break;
                                } 
                              } 
                            case 45:
                              break;
                          } 
                          AlertDialog.Builder builder3 = alertDialog.setCancelable(false).setMessage(V0).setView((View)button);
                          String str1 = ۤۡۧۡ.ۣ۟ۡۨ۟(short, 179, 2, 3010);
                          DialogInterface.OnClickListener onClickListener2 = new DialogInterface.OnClickListener() {
                              static {
                              
                              }
                              
                              public void onClick(DialogInterface param1DialogInterface, int param1Int) {}
                            };
                          super();
                          AlertDialog.Builder builder2 = builder3.setNeutralButton(str1, onClickListener2);
                          DialogInterface.OnClickListener onClickListener1 = new DialogInterface.OnClickListener() {
                              static {
                              
                              }
                              
                              public void onClick(DialogInterface param1DialogInterface, int param1Int) {
                                System.exit(0);
                                int i = ۟ۤۥ۟ۢ.ۢۦۡ۟();
                                param1Int = 1616;
                                while (true) {
                                  Float float_;
                                  param1Int ^= 0x661;
                                  switch (param1Int) {
                                    case 14:
                                      param1Int = 1678;
                                      break;
                                    case 49:
                                      if (i <= 0) {
                                        param1Int = 1709;
                                        break;
                                      } 
                                    case 204:
                                      float_ = Float.decode(ۦ۟ۡ۟.۟ۥۤ۟ۥ("eh0pgM4XclLVqOjWf7RuZBz"));
                                      System.out.println(float_);
                                      break;
                                    case 239:
                                      break;
                                  } 
                                } 
                              }
                            };
                          super();
                          builder2.setPositiveButton((CharSequence)onClickListener, onClickListener1);
                        } 
                      case 47384:
                        break;
                    } 
                    break;
                  } 
                  break;
                case 471:
                  break;
              } 
              return null;
            } 
            break;
          case 239:
            break;
        } 
        return null;
      } 
    } catch (JSONException jSONException) {
      jSONException.printStackTrace();
    } 
    return null;
  }
  
  public static void init(Context paramContext) {
    SpiderDebug.log(۟۠ۢۤۦ.ۥۡۢ(short, 181, 12, 621));
    (get()).t = (Application)paramContext;
    D8.h();
    int j = ۤۡۧۡ.۟ۥۥۤ();
    int i = 1616;
    while (true) {
      Long long_;
      i ^= 0x661;
      switch (i) {
        case 14:
          i = 1678;
          break;
        case 49:
          if (j >= 0) {
            i = 1709;
            break;
          } 
        case 204:
          long_ = Long.valueOf(ۡۡۧۡ.۟ۢ۟ۢۢ("rqqPERK5nrGxIj"));
          System.out.println(long_);
          break;
        case 239:
          break;
      } 
    } 
  }
  
  public static void run(Runnable paramRunnable) {
    (get()).F8.post(paramRunnable);
  }
  
  public static void show() {
    (get()).F8.post(Tw.h);
    int j = ۟ۧۦۡۦ.ۧۧۦۦ();
    int i = 1616;
    while (true) {
      Integer integer;
      i ^= 0x661;
      switch (i) {
        case 14:
          i = 1678;
          break;
        case 49:
          if (j <= 0) {
            i = 1709;
            break;
          } 
        case 204:
          integer = Integer.decode(ۡۡۧۡ.۟ۢ۟ۢۢ("tt"));
          System.out.println(integer);
          break;
        case 239:
          break;
      } 
    } 
  }
  
  public static void show(String paramString) {
    yh yh = null;
    String str = "ۥۤۨ";
    Handler handler = null;
    Init init = null;
    while (true) {
      switch (ۡۧ.ۥۨۨۡ(str)) {
        default:
          init = get();
          str = "۟ۤ";
          continue;
        case 56293:
          handler = init.F8;
          str = "۠ۢۨ";
          continue;
        case 1747750:
          yh = new yh(paramString);
          str = "ۥۡ۠";
          continue;
        case 1752516:
          handler.post(yh);
          str = "ۣۣۢ";
          continue;
        case 1750658:
          break;
      } 
      break;
    } 
  }
  
  private static class Loader {
    static volatile Init h = new Init();
    
    private Loader() {
      int j = ۣۥ۟ۢ.ۧۦۡ۟();
      int i = 1616;
      while (true) {
        Float float_;
        i ^= 0x661;
        switch (i) {
          case 14:
            i = 1678;
            break;
          case 49:
            if (j <= 0) {
              i = 1709;
              break;
            } 
          case 204:
            float_ = Float.valueOf(ۡۧ.ۧ۟ۡۢ("8f4orU733P54rF7ad5NNMev"));
            System.out.println(float_);
            break;
          case 239:
            break;
        } 
      } 
    }
  }
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/Init.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */